﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMyArenaInfo extends IMessageBase
    {
        public var copyCode:int;
        public var name:String;
        public var score:int;
        public var rank:int;
        public var crossRank:int;
        public var winNum:int;
        public var loseNum:int;
        public var goldNote:int;
        public const _type:int = 7008;
        public static var _regist:SMyArenaInfo = new SMyArenaInfo(true);

        public function SMyArenaInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMyArenaInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.copyCode);
            param1.writeString(this.name);
            param1.writeInt(this.score);
            param1.writeInt(this.rank);
            param1.writeInt(this.crossRank);
            param1.writeInt(this.winNum);
            param1.writeInt(this.loseNum);
            param1.writeInt(this.goldNote);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.copyCode = param1.readInt();
            this.name = param1.readString();
            this.score = param1.readInt();
            this.rank = param1.readInt();
            this.crossRank = param1.readInt();
            this.winNum = param1.readInt();
            this.loseNum = param1.readInt();
            this.goldNote = param1.readInt();
            return;
        }// end function

    }
}
